//
//  CustomButton.h
//  GLB
//
//  Created by fengjie on 2019/2/12.
//  Copyright © 2019 FengJie. All rights reserved.
//自定义图片在上面，文字在下面的视图，后面如果需要左右的可以在这个基础上面添加一个tupyj进行优化

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface CustomButton : UIView
/**初始化视图*/
+(instancetype)buttonWithTitle:(NSString *)title Image:(NSString *)image;
/**初始化文字图片在水平方向视图
 title:文字
 imag:图片名称
 isLeft:图片是否在👈，为NO就是在右边
 */
+(instancetype)buttonWithHorizontalTitle:(NSString *)title Image:(NSString *)image imageIsLeft:(BOOL)isLeft;
/**文字*/
@property (nonatomic,strong)NSString*title;
/**文字颜色*/
@property (nonatomic,strong)UIColor*titleColor;
/**文字大小*/
@property (nonatomic,strong)UIFont*titleFont;
/**点击回调*/
@property (nonatomic,copy)void (^handler)(CustomButton * view);
@end

@interface UnderlineButton : UIButton
/**创建一个带有下划线的按钮 */
+(instancetype)creUnderlineButton:(NSString *)title titleColor:(UIColor *)titleColor lineColor:(UIColor *)lineColr target:(id)target action:(SEL)action;

@end
NS_ASSUME_NONNULL_END
